package com.school.service;

import com.school.domain.Admin;
import com.school.domain.Student;
import com.school.domain.Teacher;
import com.school.domain.TextBook;

import java.util.List;

public interface AdminService {
    boolean adminLogin(long sid, String pwd);
    Admin findById(long aid);
    boolean update(Admin admin);
    boolean addStudent(Student student);
    boolean addTeacher(Teacher teacher);
    boolean addTextBook(TextBook textBook);
    boolean updateStudentPwd(String pwd);
    boolean updateStudent(Student student);
    boolean updateTeacher(Teacher teacher);
    Student findStudent(long sid);
    Teacher findTeacher(long tid);
    List<Student> findAllStudent();
    List<Teacher> findAllTeacher();



}
